package cn.gson.crm.model.dao;

import java.util.List;
import java.util.Set;

import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import cn.gson.crm.model.entity.Resources;

@Repository
public interface ResourcesDao extends CrudRepository<Resources,Long> {
	List<Resources> findAllByParentIsNull();

	Set<Resources> findAllByEnableOrderByWeightDesc(boolean b);
}
